'''score=int(input('请输入分数'))
if 0<=score<=100:
    print('分数输入正确')
else:
    raise Exception('输入不正确')''' #手动抛出异常
try:
    score = int(input('请输入分数'))
    if 0 <= score <= 100:
        print('分数输入正确')
    else:
        raise Exception('输入不正确')
except Exception as a:
        print(a)
else:                         #执行try块,异常执行except,否则执行else
    print('正确呢')

